#!/bin/bash

file=('/root/.ssh/authorized_keys' '/var/spool/cron/root' '/etc/passwd')

if [ -z $1 ];then
	# echo "input is null"
	sudo /usr/bin/md5sum -c md5.file &> /dev/null
	resu=$?
	sudo echo $resu
fi

if [[ $1 == "reload" ]];then
	> md5.file
	for i in ${file[@]}
	do
	        sudo echo "reload file $i..."   
	        sudo /usr/bin/md5sum $i >> md5.file
	done
fi